#ifndef SERIALTHREAD_H
#define SERIALTHREAD_H

#include <QWidget>
#include <QThread>
#include "myserial.h"

class SerialThread : public QThread
{
    Q_OBJECT
public:
    explicit SerialThread(QWidget *parent = nullptr);
    MySerial *Port;
    bool IsRun;
    void setPort(MySerial *s);
    void setRun(bool i);
signals:

public slots:

protected:
    void run(); //串口处理线程
};

#endif // SERIALTHREAD_H
